<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:sijyp="http://java.sun.com/jsf/composite/sijyp">

	<rich:panel id="personasPanel">
		<rich:messages id="personasPopupMessages" styleClass="rf-msgs"
			errorClass="rf-msgs-err" />

		<h:panelGrid width="100%" columns="2"
			columnClasses="firstColumnPersona, ">
			<ui:remove>
						Nombre
			</ui:remove>
			<h:outputLabel value="Nombre" />
			<h:panelGrid>
				<h:inputText id="nombrePersonaConsulta"
					value="#{personasManager.personaConsultaDto.nombre}" class="longer"
					validatorMessage="${msg['general.formatoNoValido']}">
					
				</h:inputText>
				<h:message for="nombrePersonaConsulta"
					errorClass="validationErrorMessage" />
			</h:panelGrid>

		</h:panelGrid>

		<h:panelGroup layout="block" style="text-align:center;">
			<ui:remove>
				  Botones
			</ui:remove>
			<h:commandButton value="#{cc.attrs.acceptLabel}"
				action="#{personasManager.consultarListaColectividad}">
				<f:ajax render="personasPanel" execute="personasPanel" />
			</h:commandButton>

			<a4j:commandButton value="#{cc.attrs.cancelLabel}"
				action="#{personasManager.clearAll}" execute="personasPanel"
				oncomplete="#{rich:component(cc.attrs.popupId)}.hide(event); return false;" />

		</h:panelGroup>

		<br />

		<ui:include src="personaColectividadTableResult.xhtml">
			<ui:param name="popupId" value="#{cc.attrs.popupId}" />
			<ui:param name="renderProperties"
				value="#{cc.attrs.renderComponents}" />
		</ui:include>
	</rich:panel>
</ui:composition>